package com.example.demo.pojo;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Version;

@Entity
@Table(name = "data_version")
public class DataVersion extends BaseEntity {
    /**
     *
     */
    private static final long serialVersionUID = 1830796806342370927L;
    private String name;
    private int age;
    @Version
    private Long version;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    @Override
    public String toString() {
        return "DataVersion [name=" + name + ", age=" + age + ", version=" + version + "]";
    }
}